.class Lcom/waiqin365/lightapp/salesJP/g;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    const/4 v3, 0x1

    const/4 v4, 0x0

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/salesJP/b/a/f;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/salesJP/b/a/f;->b()Z

    move-result v1

    if-eqz v1, :cond_3

    iget-object v1, v0, Lcom/waiqin365/lightapp/salesJP/b/a/f;->b:Ljava/lang/String;

    if-eqz v1, :cond_2

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/salesJP/b/a/f;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->dismissProgressDialog()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-static {v1}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->b(Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;)Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-static {v2}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->a(Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/db/jxccache/f;->h(Ljava/lang/String;)Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-static {v1}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->c(Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;)Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/waiqin365/base/db/jxccache/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/jxccache/f;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-static {v2}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->a(Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/db/jxccache/f;->f(Ljava/lang/String;)Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-static {v1}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->d(Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;)Z

    move-result v1

    if-eqz v1, :cond_0

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v1, "type"

    sget-object v2, Lcom/fiberhome/gaea/client/a/e;->o:Lcom/fiberhome/gaea/client/a/e;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    const-class v2, Lcom/waiqin365/lightapp/chexiao/ChexiaoSalesProcessSelectActivity;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v2, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v2

    const-string/jumbo v3, "reinit_activity"

    invoke-virtual {v2, v3, v0, v1}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    iget-object v1, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    const v2, 0x7f080718

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->showToast(Ljava/lang/String;)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    const-class v1, Lcom/waiqin365/lightapp/salesJP/SalesDetailActivityJP;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v1, Lcom/waiqin365/lightapp/salesJP/SalesCartActivityJP;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v1

    const-string/jumbo v2, "close_activity"

    invoke-virtual {v1, v2, v4, v0}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->finish()V

    goto/16 :goto_0

    :cond_0
    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v1

    const-string/jumbo v2, "reinit_activity"

    const-class v3, Lcom/waiqin365/lightapp/salesJP/SalesListActivityJP;

    invoke-virtual {v1, v2, v4, v3}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Class;)V

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    const-class v2, Lcom/waiqin365/lightapp/salesJP/SalesDetailActivityJP;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const-class v2, Lcom/waiqin365/lightapp/salesJP/SalesCartActivityJP;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v2

    const-string/jumbo v3, "close_activity"

    invoke-virtual {v2, v3, v4, v1}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v1

    const-class v2, Lcom/waiqin365/lightapp/salesJP/SalesListActivityJP;

    invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->a(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-static {v2}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->e(Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/waiqin365/lightapp/salesJP/SalesListActivityJP;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iget-object v2, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-virtual {v2, v1}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->startActivity(Landroid/content/Intent;)V

    :cond_1
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-static {v2}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->f(Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/waiqin365/lightapp/salesJP/SalesDetailActivityJP;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v2, "salesId"

    iget-object v0, v0, Lcom/waiqin365/lightapp/salesJP/b/a/f;->d:Ljava/lang/String;

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v0, "picPaths"

    iget-object v2, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-static {v2}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->g(Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v1, v0, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->finish()V

    goto/16 :goto_0

    :cond_2
    iget-object v1, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->dismissProgressDialog()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-static {v1}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->h(Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    iget-object v0, v0, Lcom/waiqin365/lightapp/salesJP/b/a/f;->c:Ljava/lang/String;

    const/4 v2, 0x0

    invoke-static {v1, v0, v2}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :cond_3
    iget-object v1, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->dismissProgressDialog()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-static {v1}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->h(Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/salesJP/g;->a:Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;

    invoke-static {v1}, Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;->i(Lcom/waiqin365/lightapp/salesJP/SalesInfoActivityJP;)Landroid/content/Context;

    move-result-object v1

    iget v0, v0, Lcom/waiqin365/lightapp/salesJP/b/a/f;->a:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x3f0
        :pswitch_0
    .end packed-switch
.end method
